/**
 * Project of Vehicle Routing Problem with Time Windows implements 
 * some of well-known algorithms for solving VRPTW and presents new 
 * one.
 *
 * @author Michal Drobny  
 */

package logic.car;

import logic.restriction.interfaces.HasCapacity;

/**
 * Represents a vehicle with capacity in Vehicle Routing Problem.
 * 
 * @author Michal Drobny
 * @date 24.11.2014
 */
public class CapacityVehicle extends Vehicle implements HasCapacity<Integer> {

	private int capacity;

	/**
	 * Constructor.
	 * 
	 * @param name The name
	 */
	public CapacityVehicle(String name) {
		super(name);
	}
	
	/**
	 * Constructor.
	 * 
	 * @param name The name
	 * @param capacity The capacity
	 */
	public CapacityVehicle(String name, Integer capacity) {
		super(name);
		this.capacity = capacity;
	}

	@Override
	public Integer getCapacity() {
		return capacity;
	}
}